﻿/*======================================*\
 * Author: 廖国添
 * LastModifyUser: 廖国添
 * Description: 表字段信息DTO
 * CreateTime：2013-1-15 21:50:48
 * ModifyTime:  
 * Remark: 代码生成器v0.1 by 廖国添
\*======================================*/
using System;
using ZLDC.GenericFrame.Entity.Attributes;
using ZLDC.GenericFrame.Entity;
namespace ZLDC.Entity
{
    /// <summary>
    ///  t_Competences 代码生成器生成的代码
    /// </summary>
   [Serializable]
   [TableProperty(DefaultOrderby = "ID Desc",DbType = DbTypeEnum.SqlServer, ConnAppKey = "DefaultDb", PrimaryKey = "ID", TableName = "t_Competences")]
   public partial class t_Competences : BaseEntity
   {
       #region 私有属性
	    		 private long _id;
		 private string _name;
		 private string _code;
		 private string _description;

	   #endregion
	    
	   #region 公有属性
	   		 /// <summary> 
		 ///  
		/// <para>主键列</para> 
		/// </summary> 
		[ColumnProperty(ColumnName = "ID") ]
		 public long ID
		 { 
			set 
			 { 
				object oldValue = _id;
				_id = value ;
				this.OnPropertyChanged("ID", _id, oldValue);
			 } 
			get{ return _id;} 
  		 } 

		 /// <summary> 
		 /// 权限名称 
		/// </summary> 
		[ColumnProperty(ColumnName = "Name")]
		public string Name
		{ 
			set 
			{  
				object oldValue = _name;
				_name = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("Name", _name, oldValue);
					this.OnPropertyMappingChanged("Name", _name, oldValue);
				}  
			} 
 			get{ return _name;} 
  		 } 

		 /// <summary> 
		 /// Key 
		/// </summary> 
		[ColumnProperty(ColumnName = "Code")]
		public string Code
		{ 
			set 
			{  
				object oldValue = _code;
				_code = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("Code", _code, oldValue);
					this.OnPropertyMappingChanged("Code", _code, oldValue);
				}  
			} 
 			get{ return _code;} 
  		 } 

		 /// <summary> 
		 /// 权限说明 
		/// </summary> 
		[ColumnProperty(ColumnName = "Description")]
		public string Description
		{ 
			set 
			{  
				object oldValue = _description;
				_description = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("Description", _description, oldValue);
					this.OnPropertyMappingChanged("Description", _description, oldValue);
				}  
			} 
 			get{ return _description;} 
  		 } 


	   #endregion
	   
	   
   }
}
